package com.yaoandw.lucene;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.yaoandw.util.Md5Encode;

public class Page implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static Log logger = LogFactory.getLog(Page.class); 
	private String title;
	private String content;//经过处理的正文
	private String url;
	private Date crawlTime;
	private String pageHash;
	public Page(){
		
	}
	public Page(String title,String content, String url, Date crawlTime) {
		this.title = title;
		this.content = content;
		this.url = url;
		this.crawlTime = crawlTime;
		this.pageHash = Md5Encode.encode(content);
	}
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	
	public void setContent(String content) {
		this.content = content;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Date getCrawlTime() {
		return crawlTime;
	}
	public void setCrawlTime(Date crawlTime) {
		this.crawlTime = crawlTime;
	}
	public String getPageHash() {
		return pageHash;
	}
	public void setPageHash(String pageHash) {
		this.pageHash = pageHash;
	}
	
}
